<extend name="Base/common"/>
<block name="style">
    <link href="__CSS__/question.css" rel="stylesheet" type="text/css"/>
</block>
<block name="body">
    <div class="col-xs-12">
        <include file="Public/user_info"/>
        <include file="Public/_top_menu"/>
    </div>
    <div class="col-md-9">
        <div class="bgwhite" style="margin-top: 0;padding-bottom: 40px;">
            <div class="question_h">
                <a href="{:U('question/usercenter/publish',array('uid'=>$uid))}" class="pull-left" style="width: 140px;">发布的问题</a>
                <a href="{:U('question/usercenter/answer',array('uid'=>$uid))}" class="pull-left active" style="width: 140px;">回答的问题</a>
            </div>
            <div class="question_list" style="padding-left: 5px;padding-right: 5px;">
                <if condition="count($answer_list) eq 0"><p class="text-muted"
                                                             style="text-align: center; font-size: 3em;">
                    <br><br>
                    还没有回答问题～
                    <br><br><br>
                </p></if>
                <volist name="answer_list" id="answer">
                    <include file="Public/_answeredquestion"/>
                    <!--{:W('QuestionPart/partQuestion',array('question_id'=>$vl,'need_answer'=>1))}-->
                </volist>
            </div>
        </div>
    </div>
    <div class="col-md-3 col-xs-12">
        <include file="Public/guai"/>
        <include file="Public/link"/>
    </div>
</block>
        <block name="script">
            <!--<script>
                var uid="{$uid}";
                $(function(){
                    $('.personal_answer').click(function(){
                        var question_id=$(this).attr('question-id');
                        $.post(U('question/usercenter/personalanswer'),{question_id:question_id,uid:uid},function(msg){
                            if(msg.status){
                                $('#personal_answer_box_'+question_id).html(msg.html);
                                toast.success('操作成功！');
                            }else{
                                handleAjax(msg);
                            }
                        });
                    });
                });
            </script>-->
            <script>
                initAnswerNum="{:C('QUESTION_WORDS_COUNT')}"?"{:C('QUESTION_WORDS_COUNT')}":1000;
            </script>
            <script type="text/javascript" src="__JS__/question.js"></script>
            <script type="text/javascript" src="__JS__/share.js"></script>
        </block>

